package com.example.s7;

import jcifs.smb.NtlmPasswordAuthentication;
import jcifs.smb.SmbFile;
import org.junit.jupiter.api.Test;

/**
 * Copyright: Copyright (c) 2022
 *
 * <p>
 * Description:
 *
 * @author LiuFeng
 * @version 2022/12/9 11:18
 * @since
 */
public class WindowsFile {

    @Test
    void readWindowsFile() throws Exception {
        String remoteUrl ="smb://192.168.36.34/share/123.txt";
        SmbFile smbFile = new SmbFile(remoteUrl, NtlmPasswordAuthentication.ANONYMOUS);

        System.out.println(smbFile.exists());
    }
}
